var express = require('express');
var router = express.Router();

const {
    addProduct,
    getProducts,
    deleteProduct,
    getOnePro,
    UpdateOnePro
} = require('../controllers/products');

//获得所有产品分类
router.post('/addOneProduct', addProduct);
router.get('/getAllProducts', getProducts);
router.post('/deleteOneProduct', deleteProduct);
router.post('/getOneProduct', getOnePro);
router.post('/updateOneProduct', UpdateOnePro);


module.exports = router;